package com.bookstore.backend.model.entity;

import lombok.Data;

import java.util.Date;

/**
 * @author: world
 * @date: 2022/7/29 15:40
 * @description: user表的实体信息
 */
@Data
//@JsonIgnoreProperties(allowSetters = true, value = {"password"})
public class User {
    private Integer userId;;//用户唯一id
    private String username;
    private String gender;
    private String phone;
    private String email;
    private Date jointime;
    private boolean state;
    private boolean administrators;
    private String password;

    public Integer getuserId() {
        return userId;
    }

    public void setuserId(String userId) {
        this.userId = Integer.valueOf(userId);
    }

    public String getusername() {
        return username;
    }

    public void setusername(String username) {
        this.username = username;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getphone() {
        return phone;
    }

    public void setphone(String phone) {
        this.phone = phone;
    }

    public String getemail() {
        return email;
    }

    public void setemail(String email) {
        this.email = email;
    }

    public Date getJointime() {
        return jointime;
    }

    public void setJointime(Date jointime) {
        this.jointime = jointime;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public boolean isAdministrators() {
        return administrators;
    }

    public void setAdministrators(boolean administrators) {
        this.administrators = administrators;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean userId() {
        return false;
    }
}
